<%@ page contentType="text/html;charset=UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<%@ taglib prefix="tags" tagdir="/WEB-INF/tags" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<c:set var="ctx" value="${pageContext.request.contextPath}"/>
<html>
<head>
    <title>文档段落列表</title>
    <link rel="stylesheet" href="${ctx}/static/styles/news/newslist.css" type="text/css">
</head>

<body>
<div class="news-main">
    <div class="container">
        <h2>文档段落列表</h2>
        <ul class="news-list">

            <c:forEach items="${paras.content}" var="para">
                <li class="news-item std-item">
                    <div class="news-title">
                        <a href="${ctx}/para/detail/${para.id}">${para.content}</a>
                    </div>

                    <div class="std-line">
                        来源文档标题：<a href="${ctx}/doc/detail/${doc.id}">${doc.title}</a>
                    </div>
                    <div class="std-line">
                        段落在文档中次序：<span class="std-item-it">${para.orderInDocument}</span>
                    </div>
                    <div class="news-info">
                        <span>段落在文档中的高度：${para.height}</span>
                    </div>
                    <div class="news-info">
                        <span>段落在文档中的宽度：${para.width}</span>
                    </div>
                </li>
            </c:forEach>
        </ul>
        <tags:pagination page="${paras}" paginationSize="10"/>
    </div>
</div>
</body>
</html>
